package com.demo.mybatis.logicdelete.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName(autoResultMap = true)
@Data
public class User {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @TableLogic(delval = "1", value = "0")
    private Boolean deleted;
}
